home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 4_0 / ORBIT_SO / ORBIT.H < prev   
Text File  |  1992-07-19  |  349b  |  12 lines

  1. #define NDIMS 3
  2.  
  3. typedef struct {
  4.     double m;                /* Kilograms */
  5.     double x[NDIMS];            /* meters */
  6.     double p[NDIMS];            /* momentum (kg m/s) */
  7.     double xt[NDIMS];            /* x,y at time 1/2 way through next interval*/
  8.     double f[NDIMS];            /* x and y force    */
  9.     Point pt;                /* previous screen position */
  10. } PARTICLE;
  11.  
  12. enum {dot = 1, dottrain, linetrail, tail};